import _request from "../../common/_request";
import {Message} from "element-ui";
import _object from "../../utils/_object";


let lib_activity = {

    module: 'project.activity',

    //项目列表
    list: function (callback) {

        let params = _request._params(this.module, 'list')
        _request._post(params, function (response) {
            if (response.code !== _request.success) {
                Message.info(response.msg);
                return;
            }
            callback(response.data)
        }, 0)
    },

    //项目列表
    t_list: function (tid, callback) {
        let data = {}
        data.tid = tid
        let params = _request._params(this.module, 't_list', data)
        _request._post(params, function (response) {
            if (response.code !== _request.success) {
                Message.info(response.msg);
                return;
            }
            callback(response.data)
        }, 0)
    }

}

export default lib_activity
